﻿using System;
using System.Xml.Serialization;

namespace KBEngine.Setting.Internal
{
    [Serializable]
    public class Interfaces
    {
        /// <summary>
        /// 脚本入口模块， 相当于main函数
        /// </summary>
        public string entryScriptFile = "kbemain";

        /// <summary>
        /// interfaces的地址，多组游戏服务端可以共用一个interfaces
        /// </summary>
        public string host = "localhost";
        public int port_min = 30099;
        public int port_max = 30199;

        /// <summary>
        /// 订单超时(秒)
        /// </summary>
        public uint orders_timeout = 3600;

        /// <summary>
        /// listen监听队列最大值
        /// </summary>
        [XmlElement("SOMAXCONN")]
        public uint somaxconn = 511;

        public TelnetService telnet_service = new TelnetService();
    }
}
